﻿using System;
using System.Linq;
using System.Web.Mvc;
using DistanceLearning.Filters;
using WebMatrix.WebData;

namespace DistanceLearning.Controllers
{
    [InitializeSimpleMembership]
    [Authorize]
    public class ExamTestResultsController : JournalBaseController
    {
        public ActionResult Index()
        {
            var userId = WebSecurity.CurrentUserId;
            var userResults = JournalContext.ExamConcreteTests.Where(x => x.UserID == userId).Select(x => x);
            return View(userResults);
        }
    }
}
